﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.Unity {
    public class ReceivedDataEventArgs<T> : EventArgs {
        public ReceivedDataEventArgs(List<T> data) {
            Data = data;
        }

        public List<T> Data {
            get;
            private set;
        }
    }
    public class ReceivedDataEventArgs : EventArgs {
        public ReceivedDataEventArgs(Exception ex) {
            _Error = ex;
        }

        public ReceivedDataEventArgs(object data) {
            Data = data;
        }

        public object Data {
            get;
            private set;
        }

        Exception _Error;

        public Exception Error {
            get {
                return _Error;
            } 
        }
    }
}
